package com.example.entity;

public class Student extends Account{
    public Student(Account account) {
        this.setId(account.getId());
        this.setUsername(account.getUsername());
        this.setPassword(account.getPassword());
        this.setRole(account.getRole());
        this.setName(account.getName());
        this.setNewPassword(account.getNewPassword());
        this.setAvatar(account.getAvatar());
    }
    private String sex;
    private String major;
    private String contactInfo;
    private String descr;


    public Student() {
        // 必须要有无参构造函数
    }




    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
